﻿#ifndef REJECT_H
#define REJECT_H

#include <QDialog>
#include "env.h"
#include "optioneditor.h"

namespace Ui {
class Reject;
}

class Reject : public QDialog
{
    Q_OBJECT

public:
    explicit Reject(QWidget *parent = 0);
    ~Reject();

    bool init();
    bool saveRecord();

private slots:
    void on_btn_submit_clicked();
    void reload(const OptionType &type);

    void on_transactor_currentTextChanged(const QString &text);
    void on_express_currentTextChanged(const QString &text);

private:
    Ui::Reject *ui;
    OptionHandler option;

    QString contact;
    QString content;
    QString remark;
    QString express;
    QString transactor;
};

#endif // REJECT_H
